package com.ewei.web.crawler;

import java.util.List;

/**
 * 线程池接口
 * @author David
 *
 */
public interface ThreadPool {
	/**
	 * add a thread task
	 * @param obj
	 */
	public void addTask(Object task);
	/**
	 * add list of tasks
	 * @param taskList
	 */
	public void addTask(List<Object> taskList);
	/**
	 * check the pool is open
	 */
	public boolean isOpen();
	/**
	 * shut down the thread
	 */
	public void shutdown();
}
